home *** CD-ROM | disk | FTP | other *** search
/ Professional Soft Collection 1.02 / Professional Soft Collection 1.02.iso / winutils / winstart.zip / STARTUP.BAT < prev    next >
DOS Batch File  |  1990-11-27  |  1KB  |  68 lines

  1. @ echo off
  2.  
  3.   rem STARTUP:   Windows Start-Up Compiler 1.00
  4.   rem            by Kevin S. Bachus -- Copyright 1990. All Rights Reserved.
  5.  
  6.   cls
  7.   echo STARTUP:  Windows Start-Up Compiler
  8.   echo:
  9.  
  10.   if "%1" == "" goto usage
  11.  
  12.   set rle=
  13.   if exist %1 goto options
  14.   if not exist %1.rle goto norle
  15.   set rle=.rle
  16.  
  17. :options
  18.  
  19.   if %2 == /E goto egainstall
  20.   if %2 == /e goto egainstall
  21.  
  22. :vgainstall
  23.  
  24.   if not exist %2system\win.cnf goto nosupport
  25.   if not exist %2system\vgalogo.lgo goto nosupport
  26.  
  27.   echo Creating new WIN.COM ...
  28.  
  29.   copy /b %2system\win.cnf + %2system\vgalogo.lgo + %1%rle% %2win.com > nul
  30.  
  31.   %2win
  32.   goto done
  33.  
  34. :egainstall
  35.  
  36.   if not exist %3system\win.cnf goto nosupport
  37.   if not exist %3system\vgalogo.lgo goto nosupport
  38.  
  39.   echo Creating new WIN.COM ...
  40.  
  41.   copy /b %3system\win.cnf + %3system\egalogo.lgo + %1%rle% %3win.com > nul
  42.  
  43.   %3win
  44.   goto done
  45.  
  46. :usage
  47.  
  48.   echo            Usage:  STARTUP rleimage[.rle] [/e] [d:\winpath\]
  49.   echo:
  50.   echo            rleimage is the name of the start-up screen to use
  51.   echo            /e = EGA mode (optional)
  52.   echo            d:\winpath\ = optional path where Windows is located
  53.   echo:
  54.   goto done
  55.  
  56. :norle
  57.  
  58.   echo            Could not find %1!
  59.   goto done
  60.  
  61. :nosupport
  62.  
  63.   echo            Could not find Windows Support Files!  Check Windows path.
  64.  
  65. :done
  66.   set rle=
  67.   exit
  68.